package com.lixp.exam.dao;

import com.lixp.exam.bean.Student;
import com.lixp.exam.bean.StudentUser;
import com.lixp.exam.utils.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentMapper extends MyMapper<Student> {

    /**
    *@ClassName: StudentMapper
    *@Description: 查询学生信息
    *@Params:
    *@Return:
    *@Author xxw
    *@Date 2021/4/30
    */

    @Select("select * from tbl_student_user where s_username = #{email}")
    StudentUser selectUserInfo(String email);
}